<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>菜单管理</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  #parse('/headFiles.html')
</head>
<body>
<div class="layui-form" lay-filter="LAY-form" id="LAY-form" style="padding: 20px 30px 0 0;">
	<input type="hidden" name="id" value="$!{id}"/>
	<input type="hidden" name="parentId" value="$!{parentId}"/>
  <div class="layui-form-item">
    <label class="layui-form-label">菜单名称</label>
    <div class="layui-input-block">
      <input type="text" name="name" lay-verify="required" placeholder="$!{i18n.get('pleaseEn','menu','mc')}" autocomplete="off" class="layui-input" value="$!{name}">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">图标</label>
    <div class="layui-input-block">
      <input type="text" name="icon" placeholder="$!{i18n.get('pleaseEn','menu','icon')}" autocomplete="off" class="layui-input" value="$!{icon}">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">优先级</label>
    <div class="layui-input-block">
      <input type="text" name="priority" placeholder="$!{i18n.get('pleaseEn','priority')}" autocomplete="off" class="layui-input" value="$!{priority}">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">链接</label>
    <div class="layui-input-block">
      <input type="text" name="link" placeholder="$!{i18n.get('pleaseEn','menu','link')}" autocomplete="off" class="layui-input" value="$!{link}">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">类型</label>
    <div class="layui-input-block">
    	<select name="type">
    		#foreach($item in $typeList)
    		<option value="$!{item.index()}" $!{utils.eq($item.index(),$type,'selected')}>$!{item.note()}</option>
    		#end
    	</select>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">权限</label>
    <div class="layui-input-block">
      <textarea name="permission" autocomplete="off" class="layui-textarea">$!{permission}</textarea>
    </div>
  </div>
  <div class="layui-form-item layui-hide">
    <input type="button" lay-submit lay-filter="LAY-form-submit" id="LAY-form-submit" value="$!{i18n.get('submit')}">
  </div>
</div>
#parse('/footFiles.html')
<script type="text/javascript">
  layui.config({
    base: '$!{webRoot}/layuiadmin/'
  }).extend({
    index: 'lib/index'
  }).use(['index', 'form']);
</script>
</body>
</html>